{extend name="adminheader:header"/}
{block name="content"}
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="/admin/img/profile_small.jpg"/></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs"><strong class="font-bold">欢迎您, {$list.username}</strong></span>
                                    {if condition="$list['grade'] eq 1"}
                                        <span class="text-muted text-xs block">超级管理员<b class="caret"></b></span>
                                    {elseif condition="$list['grade'] eq 2" /}
                                        <span class="text-muted text-xs block">管理员<b class="caret"></b></span>
                                    {/if}
                                </span>
                            </a>

                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a href="/" title="" target="_blank">网站首页</a></li>   
                                <li><a class="J_menuItem" href="{:url('/admin/Index/editpass')}">修改密码</a>
                                </li>
                                <li class="divider"></li>
                                <li><a href="{:url('/admin/login/logout')}">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element"><img alt="image" class="img-circle" src="/admin/img/profile_small.jpg" style="width: 40%;"/></div>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-user-secret"></i>
                            <span class="nav-label">管理员管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/adminuser/index')}">管理员列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/adminuser/add')}">添加管理员</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-user"></i>
                            <span class="nav-label">会员管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/User/index')}">会员列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/User/partner')}">合伙人列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/User/add')}">添加会员</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-group"></i>
                            <span class="nav-label">合伙人申请管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Partner/index')}">合伙人申请列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Partner/welfare')}">合伙人申请福利列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Partner/addwelfare')}">添加合伙人申请福利</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-certificate"></i>
                            <span class="nav-label">商品分类管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Category/index')}">商品分类列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Category/add')}">添加顶级分类</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-cart-plus"></i>
                            <span class="nav-label">商品管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Goods/index')}">商品列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Goods/add')}">添加商品</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-cart-arrow-down"></i>
                            <span class="nav-label">团购商品管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Goods/indexGroup')}">团购商品列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Goods/addGroup')}">添加团购商品</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-cart-arrow-down"></i>
                            <span class="nav-label">轮播图管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Flash/index')}">轮播图列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Flash/add')}">添加轮播图</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-cart-arrow-down"></i>
                            <span class="nav-label">广告管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Adverty/index')}">广告列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Adverty/add')}">添加广告</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-table"></i>
                            <span class="nav-label">订单管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Orders/index')}">订单列表</a>
                            </li>
<!--                             <li>
                                <a class="J_menuItem" href="{:url('/admin/Orders/add')}">添加订单</a>
                            </li> -->
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-cubes"></i>
                            <span class="nav-label">专柜申请管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Counters/index')}">专柜申请列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Counters/welfare')}">专柜申请福利列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Counters/addwelfare')}">添加专柜申请福利</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-university"></i>
                            <span class="nav-label">展会管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Exhibition/index')}">展会列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Exhibition/add')}">添加展会</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-building"></i>
                            <span class="nav-label">提现管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Withdrawal/index')}">提现列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('/admin/Withdrawal/add')}">添加会员提现</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-paper-plane"></i>
                            <span class="nav-label">消息推送管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="">消息列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="">发送消息推送</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa fa-comment"></i>
                            <span class="nav-label">客服管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="">客服列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="">添加客服</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i></a>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="{:url('/admin/index/indexv1')}">首页</a>
                    </div>
                </nav>
                <a class="roll-nav roll-right" href="javacript:void(0);" id="refresh-wrapper" style="right: 179px;"><i class="fa fa-refresh right_tool_icon"></i>
                </a>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <a href="{:url('/admin/login/logout')}" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <!-- 页面主体 -->
            <div class="row J_mainContent" id="content-main">
                 <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('/admin/index/indexv1')}" frameborder="0" data-id="{:url('/admin/index/indexv1')}" seamless></iframe>
            </div>
            <!-- 页面主体 -->
        <div class="footer">
            <div class="pull-right">&copy; 2018 <a href="" target="_blank">水族</a></div>
        </div>
    </div>
        <!--右侧部分结束-->
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $("#refresh-wrapper").click(function () {
            var $currentIframe = $("#content-main iframe:visible");
            $currentIframe[0].contentWindow.location.reload();
            return false;
        }); 
    });
    
</script>
{/block}